<?php
namespace app\validate;

use think\Validate;

class CheckLive extends Validate
{
    protected $rule =   [
        'title'  => 'require|length:1,50',
        'e_title'  => 'require|length:1,50',
        'teacher'  => 'require',
        'start'  => 'require',
        'end'  => 'require',
        'content'  => 'require',
    ];

    protected $message  =   [
        'title.require' => '请填写班级名称！',
        'title.length' => '班级名称在1-50个字符之间！',
        'e_title.require' => '请填写Title(EN)！',
        'e_title.length' => 'Title(EN)在1-50个字符之间！',
        'teacher.require' => '请选择老师！',
        'start.require' => '请选择开课时间！',
        'end.require' => '请选择结束时间！',
        'content.require' => '请填写说明！',
    ];

}